/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package seso;

import javax.swing.*;
import java.awt.*;

/**
 *
 * @author Administrator
 */
public class RHomeBackgroupPicture extends JLabel {

    public RHomeBackgroupPicture() {
        super();
    }

    @Override
    protected void paintComponent(Graphics g) {
        Dimension d = getSize();
        g.drawImage(Util.getUserImage("resources/HomeBackgroundTop.png"),    0,   0, d.width, 114, null);
        g.drawImage(Util.getUserImage("resources/HomeBackgroundBottom.png"), 0, 114, d.width, d.height - 114, null);

        super.paintComponent(g);
    }
    
}
